﻿using Microsoft.SharePoint.Utilities;

namespace TSB.FarmPowerShellWizard.Repository
{
    public class Helpers
    {
        public static string GetScriptComment(string key)
        {
            return string.Format("\n{0}", SPUtility.GetLocalizedString(string.Format("$Resources:{0}", key), "ResScripts", 1033));
        }

        public static string GetComment(string key)
        {
            return string.Format("\n{0}", SPUtility.GetLocalizedString(string.Format("$Resources:{0}", key), "ResScriptComments", 1033));
        }


        public static string GetHostComment(string key)
        {
            return string.Format("\nWrite-Host \"{0}\"", SPUtility.GetLocalizedString(string.Format("$Resources:{0}", key), "ResScriptComments", 1033));
        }
    }
}
